<!--<?php
require_once template('header'); 
print <<<EOT
<!--右边开始-->
<div id="right">
	<form name="mvmmall" action="" enctype="multipart/form-data" method="post" onsubmit = "return page();">
	<input type="hidden" name="setp" value="1"/>
	<input type="hidden" name="uid" value="$uid"/>
	<input type="hidden" name="action" value="$action"/>
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr><th colspan="4">添加投票</th></tr>
		<tr >
			<td class="td_left1">问题</td>
			<td colspan="3"><input type="text"  name="poll_question" id="poll_question" value="$poll_question" size="45" maxlength="255" class="text" />
			
			</td>
		</tr>
		<tr >
			<td class="td_left1" width="13%">选项件数</td>
			<td colspan="3">
			$num_select 项
			<span class="cpsm">← 决定下面的选项件数</span>
			</td>
		</tr>
		<tr >
			<td class="td_left1" width="13%">投票期限</td>
			<td colspan="3">
			 开始 <input type="text" name="start_date" size="29" value="$start_date" id="start_date" ><input type="reset" value="..."
onclick="return showCalendar('start_date', 'y-m-d');">
			结束 <input type="text" name="end_date" size="29" value="$end_date" id="end_date" ><input type="reset" value="..."
onclick="return showCalendar('end_date', 'y-m-d');">
			</td>
		</tr>
<!--
EOT;
foreach ($rt_answer as $key=>$val){
print <<<EOT
-->			
		<tr >
			<td class="td_left1">选项 $key </td>
			<td colspan="3"><input type="text"  name="poll_answer$key" id="poll_answer$key" value="$val" size="45" maxlength="255" class="text" />
			</td>
		</tr>
<!--
EOT;
} print <<<EOT
-->			
		
		
	</table>
	<div id="tfoot"><input type="submit" name="Submit" value="&nbsp;$lang[submit]&nbsp;" onclick="" /> <input type="reset" name="reset" value="&nbsp;$lang[reset]&nbsp;" /></div>
	</form>	
</div>
<!--
EOT;
?>-->